package com.example.emos.api.controller.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
@Schema(description = "添加部门表单")
public class InsertDeptForm {

    @NotBlank(message = "deptName不能为空")
    @Schema(description = "组织名称")
    private String deptName;

    @Schema(description = "组织类型，1、组织 2、部门")
    private int deptType;


//    @Schema(description = "组织编码")
//    private String deptCode;

    @Schema(description = "部门上级ID")
    private int deptSuper;
}
